package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.ExportRecords;
import com.sc.nft.entity.TempOrderDetail;
import com.sc.nft.mapper.TempOrderDetailMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 朱梦晨
 * @Description: 订单导出/ 订单详情导出表(sc_temp_order_detail)数据DAO
 * @date 2024-08-02
 */
@Slf4j
@Repository
public class TempOrderDetailDao extends ServiceImpl<TempOrderDetailMapper, TempOrderDetail> {



    public List<TempOrderDetail> getTempOrderDetailList(Long exportRecordsId){
        LambdaQueryWrapper<TempOrderDetail> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TempOrderDetail::getExportRecordsId,exportRecordsId);
        wrapper.eq(TempOrderDetail::getIsDelete, Boolean.FALSE);
        return list(wrapper);
    }
}
